#ifndef STARTUPDIALOG_H
#define STARTUPDIALOG_H

#include <QDialog>
#include <QColor>

#include "NewNetworkDialog.h"
#include "JoinSpecificDialog.h"

namespace Ui {
    class StartupDialog;
}

class StartupDialog : public QDialog
{
    Q_OBJECT

public:
    explicit StartupDialog(QWidget *parent);
    virtual ~StartupDialog();

    bool isNewNetwork() { return newNetworkDialog != NULL; }
    bool isJoinSpecific() { return joinSpecificDialog != NULL; }

    NewNetworkDialog * getNewNetworkDialog() { return newNetworkDialog; }
    JoinSpecificDialog * getJoinSpecificDialog() { return joinSpecificDialog; }

    QString getListenAddress();
    quint16 getListenPort();
    QColor getPenColor();

private slots:
    void on_buttonBox_accepted();

private:
    Ui::StartupDialog *ui;

    NewNetworkDialog *newNetworkDialog;
    JoinSpecificDialog *joinSpecificDialog;
};

#endif // STARTUPDIALOG_H
